﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Basis.Security;

namespace Tanmia.Basis.ViewInterface
{
    public interface IMessageService
    {
        void ShowSecurityMessage(AccessDeniedSecurityException secEx, bool log);

        void ShowErrorMessage(Exception ex, bool log);

        void ShowExclamationMessage(Exception ex, string caption, bool log);

        MessageServiceResultEnum RequestUserConfirmation(string requestMessage, string caption = "");
    }

    public enum MessageServiceResultEnum
    {
        /// <summary>
        /// The message box returns no result.
        /// </summary>
        None = 0,

        /// <summary>
        /// The result value of the message box is OK.
        /// </summary>
        OK = 1,

        /// <summary>
        /// The result value of the message box is Cancel.
        /// </summary>
        Cancel = 2,

        /// <summary>
        /// The result value of the message box is Yes.
        /// </summary>
        Yes = 6,

        /// <summary>
        /// The result value of the message box is No.
        /// </summary>
        No = 7,
    }
}
